import request from '@/utils/request'

// 查询附件
export function getUploadFiles(sid) {
    return request({
        url: '/standard/common/uploadfiles/' + sid,
        method: 'get'
    })
}

// 附件上传新增(通用)
export function addUploadFile(data) {
    return request({
        url: '/standard/common/attachment/add',
        method: 'post',
        data: data
    })
}
  
// 附件上传修改（通用）
export function updateUploadFile(data) {
    return request({
        url: '/standard/common/attachment/update',
        method: 'post',
        data: data
    })
}

// 附件上传删除（通用）
export function delUploadFile(data) {
    return request({
        url: '/standard/common/attachment/delete',
        method: 'post',
        data: data
    })
}